GetThemeMenuSeparatorHeight
NEW WITH THE APPEARANCE MANAGER
Gets the height of a menu separator line for the current theme.
pascal OSStatus GetThemeMenuSeparatorHeight (SInt16 *outHeight);
outHeight
- On output, the height (in pixels) of the menu separator line.
- function result
- A result code; see "Result Codes".
DISCUSSION
TheGetThemeMenuSeparatorHeight
function should be called when you are writing your own menu definition function and wish to calculate a menu rectangle for a separator to match the current theme.SPECIAL CONSIDERATIONS
Make sure Appearance Manager 1.0.1 is present before calling theGetThemeMenuSeparatorHeight
function. See "Appearance Manager Gestalt Selector Constants" for details on how to determine if the Appearance Manager is present and what its version is, if so.